from Acquisition import aq_inner

from Products.Five.browser import BrowserView
from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile

class AgendaCasdView(BrowserView):
    
    __call__ = ViewPageTemplateFile('agenda_casd.pt')
    
    def permissao_ver(self):
        return 'Authenticated' in self.context.portal_membership.getAuthenticatedMember().getRoles()